3.1.58 \(\int \frac {(a+b \text {csch}(c+d \sqrt {x}))^2}{\sqrt {x}} \, dx\) [58]

Optimal. Leaf size=47 \[ 2 a^2 \sqrt {x}-\frac {4 a b \tanh ^{-1}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d}-\frac {2 b^2 \coth \left (c+d \sqrt {x}\right )}{d} \]

[Out]

-4*a*b*arctanh(cosh(c+d*x^(1/2)))/d-2*b^2*coth(c+d*x^(1/2))/d+2*a^2*x^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {5545, 3858, 3855, 3852, 8} \begin {gather*} 2 a^2 \sqrt {x}-\frac {4 a b \tanh ^{-1}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d}-\frac {2 b^2 \coth \left (c+d \sqrt {x}\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Csch[c + d*Sqrt[x]])^2/Sqrt[x],x]

[Out]

2*a^2*Sqrt[x] - (4*a*b*ArcTanh[Cosh[c + d*Sqrt[x]]])/d - (2*b^2*Coth[c + d*Sqrt[x]])/d

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3852

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rule 3855

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 3858

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^2, x_Symbol] :> Simp[a^2*x, x] + (Dist[2*a*b, Int[Csc[c + d*x], x],
 x] + Dist[b^2, Int[Csc[c + d*x]^2, x], x]) /; FreeQ[{a, b, c, d}, x]

Rule 5545

Int[((a_.) + Csch[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Csch[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplif
y[(m + 1)/n], 0] && IntegerQ[p]

Rubi steps

\begin {align*} \int \frac {\left (a+b \text {csch}\left (c+d \sqrt {x}\right )\right )^2}{\sqrt {x}} \, dx &=2 \text {Subst}\left (\int (a+b \text {csch}(c+d x))^2 \, dx,x,\sqrt {x}\right )\\ &=2 a^2 \sqrt {x}+(4 a b) \text {Subst}\left (\int \text {csch}(c+d x) \, dx,x,\sqrt {x}\right )+\left (2 b^2\right ) \text {Subst}\left (\int \text {csch}^2(c+d x) \, dx,x,\sqrt {x}\right )\\ &=2 a^2 \sqrt {x}-\frac {4 a b \tanh ^{-1}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d}-\frac {\left (2 i b^2\right ) \text {Subst}\left (\int 1 \, dx,x,-i \coth \left (c+d \sqrt {x}\right )\right )}{d}\\ &=2 a^2 \sqrt {x}-\frac {4 a b \tanh ^{-1}\left (\cosh \left (c+d \sqrt {x}\right )\right )}{d}-\frac {2 b^2 \coth \left (c+d \sqrt {x}\right )}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.19, size = 75, normalized size = 1.60 \begin {gather*} -\frac {b^2 \coth \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )-2 a \left (a c+a d \sqrt {x}+2 b \log \left (\tanh \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )\right )\right )+b^2 \tanh \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Csch[c + d*Sqrt[x]])^2/Sqrt[x],x]

[Out]

-((b^2*Coth[(c + d*Sqrt[x])/2] - 2*a*(a*c + a*d*Sqrt[x] + 2*b*Log[Tanh[(c + d*Sqrt[x])/2]]) + b^2*Tanh[(c + d*
Sqrt[x])/2])/d)

________________________________________________________________________________________

Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \,\mathrm {csch}\left (c +d \sqrt {x}\right )\right )^{2}}{\sqrt {x}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*csch(c+d*x^(1/2)))^2/x^(1/2),x)

[Out]

int((a+b*csch(c+d*x^(1/2)))^2/x^(1/2),x)

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 51, normalized size = 1.09 \begin {gather*} 2 \, a^{2} \sqrt {x} + \frac {4 \, a b \log \left (\tanh \left (\frac {1}{2} \, d \sqrt {x} + \frac {1}{2} \, c\right )\right )}{d} + \frac {4 \, b^{2}}{d {\left (e^{\left (-2 \, d \sqrt {x} - 2 \, c\right )} - 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*csch(c+d*x^(1/2)))^2/x^(1/2),x, algorithm="maxima")

[Out]

2*a^2*sqrt(x) + 4*a*b*log(tanh(1/2*d*sqrt(x) + 1/2*c))/d + 4*b^2/(d*(e^(-2*d*sqrt(x) - 2*c) - 1))

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 271 vs. \(2 (41) = 82\).
time = 0.38, size = 271, normalized size = 5.77 \begin {gather*} \frac {2 \, {\left (a^{2} d \sqrt {x} \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, a^{2} d \sqrt {x} \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + a^{2} d \sqrt {x} \sinh \left (d \sqrt {x} + c\right )^{2} - a^{2} d \sqrt {x} - 2 \, b^{2} - 2 \, {\left (a b \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, a b \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + a b \sinh \left (d \sqrt {x} + c\right )^{2} - a b\right )} \log \left (\cosh \left (d \sqrt {x} + c\right ) + \sinh \left (d \sqrt {x} + c\right ) + 1\right ) + 2 \, {\left (a b \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, a b \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + a b \sinh \left (d \sqrt {x} + c\right )^{2} - a b\right )} \log \left (\cosh \left (d \sqrt {x} + c\right ) + \sinh \left (d \sqrt {x} + c\right ) - 1\right )\right )}}{d \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, d \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + d \sinh \left (d \sqrt {x} + c\right )^{2} - d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*csch(c+d*x^(1/2)))^2/x^(1/2),x, algorithm="fricas")

[Out]

2*(a^2*d*sqrt(x)*cosh(d*sqrt(x) + c)^2 + 2*a^2*d*sqrt(x)*cosh(d*sqrt(x) + c)*sinh(d*sqrt(x) + c) + a^2*d*sqrt(
x)*sinh(d*sqrt(x) + c)^2 - a^2*d*sqrt(x) - 2*b^2 - 2*(a*b*cosh(d*sqrt(x) + c)^2 + 2*a*b*cosh(d*sqrt(x) + c)*si
nh(d*sqrt(x) + c) + a*b*sinh(d*sqrt(x) + c)^2 - a*b)*log(cosh(d*sqrt(x) + c) + sinh(d*sqrt(x) + c) + 1) + 2*(a
*b*cosh(d*sqrt(x) + c)^2 + 2*a*b*cosh(d*sqrt(x) + c)*sinh(d*sqrt(x) + c) + a*b*sinh(d*sqrt(x) + c)^2 - a*b)*lo
g(cosh(d*sqrt(x) + c) + sinh(d*sqrt(x) + c) - 1))/(d*cosh(d*sqrt(x) + c)^2 + 2*d*cosh(d*sqrt(x) + c)*sinh(d*sq
rt(x) + c) + d*sinh(d*sqrt(x) + c)^2 - d)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {csch}{\left (c + d \sqrt {x} \right )}\right )^{2}}{\sqrt {x}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*csch(c+d*x**(1/2)))**2/x**(1/2),x)

[Out]

Integral((a + b*csch(c + d*sqrt(x)))**2/sqrt(x), x)

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 76, normalized size = 1.62 \begin {gather*} \frac {2 \, {\left (d \sqrt {x} + c\right )} a^{2}}{d} - \frac {4 \, a b \log \left (e^{\left (d \sqrt {x} + c\right )} + 1\right )}{d} + \frac {4 \, a b \log \left ({\left | e^{\left (d \sqrt {x} + c\right )} - 1 \right |}\right )}{d} - \frac {4 \, b^{2}}{d {\left (e^{\left (2 \, d \sqrt {x} + 2 \, c\right )} - 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*csch(c+d*x^(1/2)))^2/x^(1/2),x, algorithm="giac")

[Out]

2*(d*sqrt(x) + c)*a^2/d - 4*a*b*log(e^(d*sqrt(x) + c) + 1)/d + 4*a*b*log(abs(e^(d*sqrt(x) + c) - 1))/d - 4*b^2
/(d*(e^(2*d*sqrt(x) + 2*c) - 1))

________________________________________________________________________________________

Mupad [B]
time = 1.43, size = 81, normalized size = 1.72 \begin {gather*} 2\,a^2\,\sqrt {x}-\frac {4\,b^2}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,\sqrt {x}}-1\right )}-\frac {8\,\mathrm {atan}\left (\frac {a\,b\,{\mathrm {e}}^{d\,\sqrt {x}}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {a^2\,b^2}}\right )\,\sqrt {a^2\,b^2}}{\sqrt {-d^2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b/sinh(c + d*x^(1/2)))^2/x^(1/2),x)

[Out]

2*a^2*x^(1/2) - (4*b^2)/(d*(exp(2*c + 2*d*x^(1/2)) - 1)) - (8*atan((a*b*exp(d*x^(1/2))*exp(c)*(-d^2)^(1/2))/(d
*(a^2*b^2)^(1/2)))*(a^2*b^2)^(1/2))/(-d^2)^(1/2)

________________________________________________________________________________________